package com.music.checkpoints.common.amqp.consumber;

import com.music.checkpoints.common.amqp.event.EnterMsgEvent;
import com.music.checkpoints.common.amqp.message.EnterMsg;
import com.music.checkpoints.common.service.ExamineeManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EnterExamConsumer implements EnterMsgEvent {
    @Autowired
    private ExamineeManager examineeManager;

    @Override
    public void enterMsgEvent(EnterMsg enterMsg) {
        examineeManager.enterExam(enterMsg);
    }
}
